package com.veo.actuator.health;

import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class MyHealthIndicator implements HealthIndicator {
    @Override
    public Health health() {
        if ( 1== 1){
            return  Health.up()
                    .build();
        }
        return Health.down()
                .withDetail("msg","justdown")
                .withDetail("code","500")
                .build();
    }
}
